import extraConfigEvent from '@/common/extra-config-event.js';
import {
	EMIT_PARAMS_OBJ
} from '@/utils/constant';
import {
	$demoi18n
} from '@/utils/lang';

export default {
	isCustomProertyPannel: true,
	propertyPannelName: `config_${process.env.xvueNameSpace_}FullyMechanizedNew`,
	config: {
		property: {
			// title: 'Basic Pie',
			// isTitleSignVisiable: false,
			// signMarginLeft: 10,
			// verticalLineBackgroundColor: '#00ffff',
			// legend: true,
			// componentStyle: window._adoPremise.uc.theme,
			// color: 'A5',
			// colorComponents: 'ColorThemeEditorCustom', // 自定义颜色模式
			// customColorField: 's', // 自定义颜色的关联字段
			// bodyWidthPercent: 50, // 主体占宽度比例
			// totalDecimalCount: 2, // 总数显示小数位
			// percentDecimalCount: 2, // 百分比小数位
			// series: {
			//   label: {
			//     show: false,
			//   },
			// },
			// tooltip: {
			//   isVisiable: false,
			//   vars: {},
			//   html: '',
			//   apis: [],
			// },
			// labelQuantity: 1,
			// showTotal: true,
			// canAsTooltip: true,
			// isDebounce: false,
			// debounceTime: 5,
			// noDataPromptType: 'defaultPrompt',
			// noDataPrompt: '',

			bgColor: '#05163c',
			unitColor: '#C5C5C5',
			width: 452,
			height: 214,

		},
		data: {
			dataSourceType: 'staticData',
			dataSource: '',
			apiCode: '',
			dataPackage: '',
			dataTable: '',
			redisKey: '',
			autoRefresh: {
				switchEnable: false,
				actTypes: ['pull', 'push'],
				actType: 'pull',
				interval: 300,
			},
			tableData: [{
					field: 'title',
					mapping: 'title',
					explain: '标题',
					skipVerification: true,
				},
				{
					field: 'time',
					mapping: 'time',
					explain: '时间',
					skipVerification: true,
				},
				{
					field: 'status',
					mapping: 'status',
					explain: '状态',
					skipVerification: true,
				},
				{
					field: 'speed',
					mapping: 'speed',
					explain: '速度',
					skipVerification: true,
				},
				{
					field: 'location',
					mapping: 'location',
					explain: '位置',
					skipVerification: true,
				},
				{
					field: 'direction',
					mapping: 'direction',
					explain: '方向 1:左 2:右',
					skipVerification: true,
				},
				{
					field: 'code',
					mapping: 'code',
					explain: '编码',
					skipVerification: true,
				},
				// {
				//   field: 'y',
				//   mapping: 'value',
				//   explain: 'panel.label.value',
				// },
				// {
				//   field: 'label',
				//   mapping: '',
				//   explain: 'panelData.valueLabelOptional',
				//   skipVerification: true,
				// },
				// {
				//   field: 'total',
				//   mapping: '',
				//   explain: 'panelData.totalLabelOptional',
				//   skipVerification: true,
				// },
			],
		},
		linkage: {},
	},
	advancedLinkage: {},
	events: [{
			id: 'c85c0001-0001-4346-9b7a-1b7f04c8523r',
			key: 'pie-click',
			label: '饼图点击事件',
			type: 'out',
			extraTpye: 'fieldName',
			description: '',
			parameters: [{
					id: '89d7f710-1230-45b1-bb87-7bcb8bec99e4',
					key: 'pie_click_key',
					label: 'panelEvent.label.eventKey',
					value: '',
				},
				{
					id: 'dd788002-bpc2-4a32-a602-469090969e22',
					key: EMIT_PARAMS_OBJ,
					label: '发出参数对象',
					hide: true,
					value: '',
				},
			],
		},
		{
			id: 'c85c5869-7162-4346-plkj-1b7f04c8523c',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa3598-6e9a-67yh-b77b-782wsdfac7db',
				key: 'key-old-1',
				label: '',
				value: '',
			}, ],
		},
		{
			id: 'c85c5869-7162-bnmj-9b7a-1b7f04c8523c',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa3598-6e9a-grvs-b77b-782wsdfac7db',
				key: 'key-old-2',
				label: '时间',
				value: '',
			}, ],
		},
		{
			id: 'c85c0001-7162-bnmj-9b7a-1b7f04c85999',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa3598-6e9a-grvs-b77b-782tgbfac999',
				key: 'key-old-3',
				label: '',
				value: '',
			}, ],
		},

		{
			id: '8f415960-d315-11ea-988b-c71201010d36',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '8f42b8f0-d315-11ea-988b-c71201010d36',
				key: 'key-old-4',
				label: '',
				value: '',
			}, ],
		},
		{
			id: '8f42e000-d315-11ea-988b-c71201010d36',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: 'f4cf9440-d315-11ea-bf46-2557ecf0db55',
				key: 'key-old-5',
				label: '',
				value: '',
			}, ],
		},
		{
			id: 'f4d141f0-d315-11ea-bf46-2557ecf0db55',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: 'f4d141f1-d315-11ea-bf46-2557ecf0db55',
				key: 'key-old-6',
				label: '',
				value: '',
			}, ],
		},
		{
			id: 'c85c5869-1000-rgbn-9b7a-1b7f04c8523c',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa1000-1000-4882-b77b-782wsdfac7db',
				key: 'key-old-7',
				label: '',
				value: '',
			}, ],
		},
		{
			id: 'c85c5869-1010-rgbn-9b7a-1b7f04c8523c',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa1000-1010-4882-b77b-782wsdfac7db',
				key: 'key-old-8',
				label: '',
				value: '',
			}, ],
		},
		{
			id: 'c85c5869-1002-rgbn-9b7a-1b7f04c8523c',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa1000-1002-4882-b77b-782wsdfac7db',
				key: 'key-old-9',
				label: '',
				value: '',
			}, ],
		},
		{
			id: 'c85c5869-1003-rgbn-9b7a-1b7f04c8523c',
			key: '',
			label: '',
			type: 'in',
			description: '',
			parameters: [{
				id: '1eaa1000-1003-4882-b77b-782wsdfac7db',
				key: 'key-old-10',
				label: '',
				value: '',
			}, ],
		},
		...extraConfigEvent,
	],
};